import { createRouter, createWebHashHistory } from 'vue-router'

import LoginView from '@/views/LoginView'
import ManagerView from '@/views/ManagerView'
import UserView from '@/views/UserView'
import TeacherView from '@/views/TeacherView'

const routes = [
  {
    path: '/login',
    name: 'LoginView',
    component: LoginView
  },
  {
    path: '/manager',
    name: 'ManagerView',
    component: ManagerView
  },
  {
    path: '/user',
    name: 'UserView',
    component: UserView
  },
  {
    path: '/',
    name: 'TeacherView',
    component: TeacherView
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
